Optimal. Leaf size=44 \[ -\frac{9}{2} \log \left (x^2+1\right )+4 \log \left (x^2+2\right )-\frac{12 x^2+11}{2 \left (x^4+3 x^2+2\right )}+\log (x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.140799, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097 \[ -\frac{9}{2} \log \left (x^2+1\right )+4 \log \left (x^2+2\right )-\frac{12 x^2+11}{2 \left (x^4+3 x^2+2\right )}+\log (x) \]
Antiderivative was successfully verified.
[In] Int[(4 + x^2 + 3*x^4 + 5*x^6)/(x*(2 + 3*x^2 + x^4)^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 22.1618, size = 56, normalized size = 1.27 \[ - \frac{5 x^{2}}{2 \left (x^{4} + 3 x^{2} + 2\right )} + \frac{\log{\left (x^{2} \right )}}{2} - \frac{9 \log{\left (x^{2} + 1 \right )}}{2} + 4 \log{\left (x^{2} + 2 \right )} - \frac{3}{2 \left (x^{2} + 2\right )} - \frac{2}{x^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((5*x**6+3*x**4+x**2+4)/x/(x**4+3*x**2+2)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0351933, size = 44, normalized size = 1. \[ -\frac{9}{2} \log \left (x^2+1\right )+4 \log \left (x^2+2\right )+\frac{-12 x^2-11}{2 \left (x^4+3 x^2+2\right )}+\log (x) \]
Antiderivative was successfully verified.
[In] Integrate[(4 + x^2 + 3*x^4 + 5*x^6)/(x*(2 + 3*x^2 + x^4)^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.027, size = 38, normalized size = 0.9 \[ \ln \left ( x \right ) +4\,\ln \left ({x}^{2}+2 \right ) -{\frac{13}{2\,{x}^{2}+4}}+{\frac{1}{2\,{x}^{2}+2}}-{\frac{9\,\ln \left ({x}^{2}+1 \right ) }{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((5*x^6+3*x^4+x^2+4)/x/(x^4+3*x^2+2)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.721556, size = 59, normalized size = 1.34 \[ -\frac{12 \, x^{2} + 11}{2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} + 4 \, \log \left (x^{2} + 2\right ) - \frac{9}{2} \, \log \left (x^{2} + 1\right ) + \frac{1}{2} \, \log \left (x^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/((x^4 + 3*x^2 + 2)^2*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.260401, size = 96, normalized size = 2.18 \[ -\frac{12 \, x^{2} - 8 \,{\left (x^{4} + 3 \, x^{2} + 2\right )} \log \left (x^{2} + 2\right ) + 9 \,{\left (x^{4} + 3 \, x^{2} + 2\right )} \log \left (x^{2} + 1\right ) - 2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )} \log \left (x\right ) + 11}{2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/((x^4 + 3*x^2 + 2)^2*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.453258, size = 39, normalized size = 0.89 \[ - \frac{12 x^{2} + 11}{2 x^{4} + 6 x^{2} + 4} + \log{\left (x \right )} - \frac{9 \log{\left (x^{2} + 1 \right )}}{2} + 4 \log{\left (x^{2} + 2 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x**6+3*x**4+x**2+4)/x/(x**4+3*x**2+2)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.272368, size = 63, normalized size = 1.43 \[ \frac{x^{4} - 21 \, x^{2} - 20}{4 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} + 4 \,{\rm ln}\left (x^{2} + 2\right ) - \frac{9}{2} \,{\rm ln}\left (x^{2} + 1\right ) + \frac{1}{2} \,{\rm ln}\left (x^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((5*x^6 + 3*x^4 + x^2 + 4)/((x^4 + 3*x^2 + 2)^2*x),x, algorithm="giac")
[Out]